from .models import Teachers

def front_user(request):
    userid = request.session.get("user_id")
    userModel = Teachers.objects.filter(pk=userid).first()
    if userModel:
        return {'front_user': userModel}
    else:
        return {}